//
//  ZMRefreshHeader.swift
//  WEIBO3.0
//
//  Created by beisheng03 on 2017/7/18.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit
import MJRefresh
class ZMRefreshHeader: MJRefreshNormalHeader {
    
    override func prepare() {
        super.prepare()
        
        isAutomaticallyChangeAlpha = true
        
        // 隐藏时间
        //    self.lastUpdatedTimeLabel.textColor = [UIColor colorWithRed:0.0/255.0 green:169.0/255.0  blue:254.0/255.0 alpha:0.98];
        // 修改状态文字的颜色
        //    self.stateLabel.textColor = [UIColor colorWithRed:0.0/255.0 green:169.0/255.0  blue:254.0/255.0 alpha:0.98];
        // 修改状态文字
        //    [self setTitle:@"赶紧再下拉" forState:MJRefreshStateIdle];
        ////    [self setTitle:@"松开🐴上刷新" forState:MJRefreshStatePulling];
        //    [self setTitle:@"松开马上刷新" forState:MJRefreshStatePulling];
        //    [self setTitle:@"正在玩命刷新中..." forState:MJRefreshStateRefreshing];
        
        // 添加logo
        //    UIImageView *logoView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"loginb"]];
        
        //    [self addSubview:logoView];
        //    self.logoView = logoView;
    }



    
    override func placeSubviews() {
        super.placeSubviews()
        
        //    self.logoView.width_zm = KScreenW;
        //    self.logoView.height_zm = KScreenW/16.0 * 9;
        //
        //    self.logoView.centerX_zm = self.width_zm * 0.5;
        //    self.logoView.y_zm = - self.logoView.height_zm;
    }
}
